home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_aiwakeup.cog < prev    next >
Text File  |  1999-11-15  |  747b  |  46 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_aiwakeup.cog
  4. #
  5. # Delay and trigger the wakeup of enemies
  6. #
  7. # [RKD]
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. message    startup
  14. message    crossed
  15.  
  16. surface    spiderTrigger
  17.  
  18. thing    enemy0
  19. thing    enemy1
  20. end
  21.  
  22. # ========================================================================================
  23. code
  24. startup:
  25.     sleep(.1);
  26.     AISetMode(enemy0, 0x2000);
  27.     AISetMode(enemy1, 0x2000);
  28.     return;
  29.  
  30. crossed:
  31.     Sleep(RandBetween(1, 2));
  32.  
  33.     if (enemy0 != -1)
  34.     {
  35.         AIClearMode(enemy0, 0x2000);
  36.     }
  37.  
  38.     if (enemy1 != -1)
  39.     {
  40.         AIClearMode(enemy1, 0x2000);
  41.     }
  42.  
  43.     return;
  44.  
  45. end
  46.